package com.cheung.shopkeeper.common.mybatis;

public class MybatisMysqlDialect extends MybatisDialect{

    public boolean supportsLimit() {
        return true;
    }

    public boolean supportsLimitOffset() {
        return true;
    }

    public String getLimitString(String sql, int offset, int limit) {
        StringBuffer sb = new StringBuffer(sql);
        sb.append(" limit ");  
        sb.append(offset);  
        sb.append(",");  
        sb.append(limit);  
        return sb.toString();  
    }

}
